package doh.service;

import javax.ejb.Remote;
import java.util.*;
import java.io.*;
import doh.util.*;
import doh.entity.*;

@Remote
public interface UserSessionBeanRemote {
    public boolean login(String id, String password);
    public boolean register(String id, String password);
    List<Player> getPlayers();
    int getRating(String id);
    void adjust_stats(String p1, String p2, boolean winner, int adjustment, GameSessionDetails gsd);
    int calc_ELO_adjustment(int r1, int r2, boolean winner);
    void addGame(GameSessionDetails gsd);
    List<Game> getHistory(String player);
    List<LadderEntry> getLadder();
    public void destroy();
    public void logout();
    public String getId();
    public boolean deleteUser(String id);
    public boolean changeUserPassword(String id, String password);
    public int matchPlayers(String player);
    public Properties makeThrow(String player, int t, int gameID) throws FileNotFoundException, IOException;
}
